From: Soby Mathew Date: Wed, 10 May 2017 10:48:04 +0000 (+0100) Subject: Add support to link an external lib with ARM TF X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=048531d7ed818bab32f5ffa0f4f518310e602539;p=project%2Fbcm63xx%2Fatf.git Add support to link an external lib with ARM TF This patch defines the variable `LDLIBS` which allows external libraries to be specified to 'ld' to enable it to link the libraries. Change-Id: I02a490eca1074063d00153ccb0ee974ef8859a0e Signed-off-by: Soby Mathew --- diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk index aee045de..e59a64b4 100644 --- a/make_helpers/build_macros.mk +++ b/make_helpers/build_macros.mk @@ -314,7 +314,7 @@ else $$(CC) $$(TF_CFLAGS) $$(CFLAGS) -xc -c - -o $(BUILD_DIR)/build_message.o endif $$(Q)$$(LD) -o $$@ $$(TF_LDFLAGS) $$(LDFLAGS) -Map=$(MAPFILE) \ - --script $(LINKERFILE) $(BUILD_DIR)/build_message.o $(OBJS) + --script $(LINKERFILE) $(BUILD_DIR)/build_message.o $(OBJS) $(LDLIBS) $(DUMP): $(ELF) @echo " OD $$@"